home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ARexxTools
/
fpl70.lha
/
bench
/
decimal.rexx
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
OS/2 REXX Batch file
|
1993-03-11
|
236 b
|
18 lines
/* AREXX */
say "Insert maximum number of decimals:"
pull number
say "Insert left operand:"
pull a
say "Insert right operand:"
pull b
s=(a%b)
if ((a//b)>0) then
s=s||"."
do i=0 to number
a=(a//b)*10
s=s||(a%b)
end
say s